Console = {}

local function getLineInfo()
    local info = debug.getinfo(3)
    return info.short_src..":"..info.currentline
end
function Console.log(...)
    print("frame:"..BaseSystem.frameCount,  getLineInfo(), ... )
end

function Console.warn(...)
    print("frame:"..BaseSystem.frameCount,  getLineInfo(), ... )
    print(debug.traceback())
end

function Console.error(...)
    print("frame:"..BaseSystem.frameCount,  getLineInfo(), ... )
    print(debug.traceback())
end